package com.ly.mpayment.persist.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


/**
 * DownOrderLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="downorderlog"

)

public class DownOrderLog  implements java.io.Serializable {


    // Fields

     private String downorderloguuid;
     private DownRechargeGame downRechargeGame;
     private DownRechargeFlow downRechargeFlow;
     private User userLog;
     private Date createtime;
     private String remark;
     private String downoperationtype;
     private Integer downordertype;


    // Constructors

    /** default constructor */
    public DownOrderLog() {
    }


    /** full constructor */
    public DownOrderLog(DownRechargeGame downRechargeGame, DownRechargeFlow downRechargeFlow, User user, Date createtime, String remark, String downoperationtype, Integer downordertype) {
        this.downRechargeGame = downRechargeGame;
        this.downRechargeFlow = downRechargeFlow;
        this.userLog = user;
        this.createtime = createtime;
        this.remark = remark;
        this.downoperationtype = downoperationtype;
        this.downordertype = downordertype;
    }


    // Property accessors
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name="downorderloguuid", unique=true, nullable=false, length=40)

    public String getDownorderloguuid() {
        return this.downorderloguuid;
    }

    public void setDownorderloguuid(String downorderloguuid) {
        this.downorderloguuid = downorderloguuid;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="downgameuuid")

    public DownRechargeGame getDownRechargeGame() {
        return this.downRechargeGame;
    }

    public void setDownRechargeGame(DownRechargeGame downRechargeGame) {
        this.downRechargeGame = downRechargeGame;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="downorderuuid")

    public DownRechargeFlow getDownRechargeFlow() {
        return this.downRechargeFlow;
    }

    public void setDownRechargeFlow(DownRechargeFlow downRechargeFlow) {
        this.downRechargeFlow = downRechargeFlow;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="useruuid")

    public User getUserLog() {
        return this.userLog;
    }

    public void setUserLog(User user) {
        this.userLog = user;
    }

    @Column(name="createtime", length=19)

    public Date getCreatetime() {
        return this.createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Column(name="remark", length=1000)

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Column(name="downoperationtype", length=40)

    public String getDownoperationtype() {
        return this.downoperationtype;
    }

    public void setDownoperationtype(String downoperationtype) {
        this.downoperationtype = downoperationtype;
    }

    @Column(name="downordertype")

    public Integer getDownordertype() {
        return this.downordertype;
    }

    public void setDownordertype(Integer downordertype) {
        this.downordertype = downordertype;
    }









}
